package com.stronger.pettern.decorator.decorator2;

/**
 * 具体装饰角色
 */
public class FishDecorator extends AbDecoratorAnimal{
    public FishDecorator(Animal animal) {
        super(animal);
    }

    public void swim(){
        System.out.println("fish is swimming");
    }

    public void sleep(){
        super.sleep();
        swim();
    }
}
